<?php
namespace app\index\controller;

class Base extends \think\Controller
{
    public function _initialize()
    {
        $this->nav();
    }

    public function nav()
    {

        $navers = db('Cate')->order('id')->select();
        $this->assign('navers',$navers);
    }
}
